/**
 * Alipay.com Inc.
 * Copyright (c) 2004-2013 All Rights Reserved.
 */
package com.losenote.service.result;

/**
 * 分页结果基础类
 * 
 * @author jingyu.dan
 * @version $Id: PageResult.java, v 0.1 2013-3-4 下午04:29:22 jingyu.dan Exp $
 */
public class PageResult extends LnResult {

    /** serialVersionUID */
    private static final long serialVersionUID = -2415263113817806718L;

    /** 查询到的结果总数 */
    private int               totalItems       = 0;

    /** 当前页码 */
    private int               currentPage      = 0;

    /** 每页条数 */
    private int               itemsPerPage     = 0;

    /**
     * 默认构造函数
     */
    public PageResult() {
        super();
    }

    /**
     * 构造设置成功或失败标记的结果对象
     * @param success
     */
    public PageResult(boolean success) {
        super(success);
    }

    public int getTotalItems() {
        return totalItems;
    }

    public void setTotalItems(int totalItems) {
        this.totalItems = totalItems;
    }

    public int getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }

    public int getItemsPerPage() {
        return itemsPerPage;
    }

    public void setItemsPerPage(int itemsPerPage) {
        this.itemsPerPage = itemsPerPage;
    }

}
